//
//  TESTVC.m
//  BaseProject
//
//  Created by mac on 2020/12/5.
//  Copyright © 2020 王洋. All rights reserved.
//

#import "TESTVC.h"
#import "UMSPPPayUnifyPayPlugin.h"
@interface TESTVC ()

@end

@implementation TESTVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
}
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    if (![WXApi isWXAppInstalled]) {
        [Utilities showToast:@"手机未安装微信"];
        return;
    }
    //构造SendAuthReq结构体
    SendAuthReq* req = [[SendAuthReq alloc]init];
    req.scope = S.scope_weixin;
    req.state = S.state_weixin;
    //第三方向微信终端发送一个SendAuthReq消息结构
    [WXApi sendReq:req completion:nil];
}
@end
